<#assign prefixName = 'WHERE'>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__id??)>
	<#if (where__and__eq__id__value??)>
${prefixName} T.ID = :where__and__eq__id__value
	<#else>
${prefixName} T.ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__id__value??)>
${prefixName} T.ID <> :where__and__nq__id__value
	<#else>
${prefixName} T.ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__id__value??)>
${prefixName} T.ID = :where__or__eq__id__value
	<#else>
${prefixName} T.ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__id__value??)>
${prefixName} T.ID <> :where__or__nq__id__value
	<#else>
${prefixName} T.ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__endDaTi??)>
	<#if (where__and__eq__endDaTi__value??)>
${prefixName} T.END_DA_TI = :where__and__eq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__endDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__endDaTi__value??)>
${prefixName} T.END_DA_TI <> :where__and__nq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__endDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__endDaTi__value??)>
${prefixName} T.END_DA_TI = :where__or__eq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__endDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__endDaTi__value??)>
${prefixName} T.END_DA_TI <> :where__or__nq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__userId??)>
	<#if (where__and__eq__userId__value??)>
${prefixName} T.USER_ID = :where__and__eq__userId__value
	<#else>
${prefixName} T.USER_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__userId??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__userId__value??)>
${prefixName} T.USER_ID <> :where__and__nq__userId__value
	<#else>
${prefixName} T.USER_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__userId??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__userId__value??)>
${prefixName} T.USER_ID = :where__or__eq__userId__value
	<#else>
${prefixName} T.USER_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__userId??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__userId__value??)>
${prefixName} T.USER_ID <> :where__or__nq__userId__value
	<#else>
${prefixName} T.USER_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__startingTi??)>
	<#if (where__and__eq__startingTi__value??)>
${prefixName} T.STARTING_TI = :where__and__eq__startingTi__value
	<#else>
${prefixName} T.STARTING_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__startingTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__startingTi__value??)>
${prefixName} T.STARTING_TI <> :where__and__nq__startingTi__value
	<#else>
${prefixName} T.STARTING_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__startingTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__startingTi__value??)>
${prefixName} T.STARTING_TI = :where__or__eq__startingTi__value
	<#else>
${prefixName} T.STARTING_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__startingTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__startingTi__value??)>
${prefixName} T.STARTING_TI <> :where__or__nq__startingTi__value
	<#else>
${prefixName} T.STARTING_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__beginDaTi??)>
	<#if (where__and__eq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI = :where__and__eq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__beginDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI <> :where__and__nq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__beginDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI = :where__or__eq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__beginDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI <> :where__or__nq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__finishTi??)>
	<#if (where__and__eq__finishTi__value??)>
${prefixName} T.FINISH_TI = :where__and__eq__finishTi__value
	<#else>
${prefixName} T.FINISH_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__finishTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__finishTi__value??)>
${prefixName} T.FINISH_TI <> :where__and__nq__finishTi__value
	<#else>
${prefixName} T.FINISH_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__finishTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__finishTi__value??)>
${prefixName} T.FINISH_TI = :where__or__eq__finishTi__value
	<#else>
${prefixName} T.FINISH_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__finishTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__finishTi__value??)>
${prefixName} T.FINISH_TI <> :where__or__nq__finishTi__value
	<#else>
${prefixName} T.FINISH_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__code??)>
	<#if (where__and__eq__code__value??)>
${prefixName} T.CODE = :where__and__eq__code__value
	<#else>
${prefixName} T.CODE IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__code??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__code__value??)>
${prefixName} T.CODE <> :where__and__nq__code__value
	<#else>
${prefixName} T.CODE IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__code??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__code__value??)>
${prefixName} T.CODE = :where__or__eq__code__value
	<#else>
${prefixName} T.CODE IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__code??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__code__value??)>
${prefixName} T.CODE <> :where__or__nq__code__value
	<#else>
${prefixName} T.CODE IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__password??)>
	<#if (where__and__eq__password__value??)>
${prefixName} T.PASSWORD = :where__and__eq__password__value
	<#else>
${prefixName} T.PASSWORD IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__password??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__password__value??)>
${prefixName} T.PASSWORD <> :where__and__nq__password__value
	<#else>
${prefixName} T.PASSWORD IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__password??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__password__value??)>
${prefixName} T.PASSWORD = :where__or__eq__password__value
	<#else>
${prefixName} T.PASSWORD IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__password??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__password__value??)>
${prefixName} T.PASSWORD <> :where__or__nq__password__value
	<#else>
${prefixName} T.PASSWORD IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
